package com.lyf.scm.plan.api.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * description:
 *          品类信息DTO
 * @author: haodong
 * @data: 2020/8/15 17:19
 */
@Data
@ApiModel("品类")
public class CategoryBaseInfoDTO implements Serializable {

    @ApiModelProperty("后台类目主键id")
    private Long id;

    @ApiModelProperty("后台类目名称")
    private String name;

    @ApiModelProperty("从根节点到本类目的id")
    private String path;

    @ApiModelProperty("后台类目编号")
    private Long code;

    @ApiModelProperty("后台类目父id")
    private Long parentId;

    @ApiModelProperty("后台类目层级")
    private Integer level;

    @ApiModelProperty("是否叶子节点")
    private Boolean isLeaf;

    @ApiModelProperty("后台类目list")
    private List<CategoryBaseInfoDTO> categoryDTOList;
}
